package com.cinc.mdm.modules.processRoute.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cinc.mdm.modules.processRoute.entity.MdmProcessRouteDetail;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Description: mdm_process_route_class
 * @Author: jeecg-boot
 * @Date:   2024-05-04
 * @Version: V1.0
 */
@Data
public class MdmProcessRouteClassPage{

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**父ID*/
	@Excel(name = "父ID", width = 15)
    @ApiModelProperty(value = "父ID")
    private String pid;
	/**主表ID*/
	@Excel(name = "主表ID", width = 15)
    @ApiModelProperty(value = "主表ID")
    private String mainId;
	/**类型*/
	@Excel(name = "类型", width = 15)
    @ApiModelProperty(value = "类型")
    private String typeNo;
	/**编号*/
	@Excel(name = "编号", width = 15)
    @ApiModelProperty(value = "编号")
    private String classNo;
	/**说明*/
	@Excel(name = "说明", width = 15)
    @ApiModelProperty(value = "说明")
    private String classDesc;
	/**入节点*/
	@Excel(name = "入节点", width = 15, dictTable = "mdm_process_route_detail", dicText = "process_name", dicCode = "id")
	@Dict(dictTable = "mdm_process_route_detail", dicText = "process_name", dicCode = "id")
    @ApiModelProperty(value = "入节点")
    private String processIn;
	/**出节点*/
	@Excel(name = "出节点", width = 15, dictTable = "mdm_process_route_detail", dicText = "process_name", dicCode = "id")
	@Dict(dictTable = "mdm_process_route_detail", dicText = "process_name", dicCode = "id")
    @ApiModelProperty(value = "出节点")
    private String processOut;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private String updateBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**租户ID*/
	@Excel(name = "租户ID", width = 15)
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;

    @ExcelCollection(name = "工艺路线明细")
    @ApiModelProperty(value = "工艺路线明细")
    private List<MdmProcessRouteDetail> processRouteDetailList;
}
